﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class TiSiZuCe : MonoBehaviour {
    public Button close, Ok;
    public Text Number;
    private string pass;
    public void Setnumber(string _Number,string pas ) {
        Number.text = _Number;
        pass = pas;
    }
    private void Awake()
    {
        close.onClick.AddListener(Close);
        Ok.onClick.AddListener(OK);
    }
    public void Close() {
        Destroy(this.gameObject);
    }
    public void OK()
    {
        MessageManager.GetInstance().Send7144(Number.text, pass);
        SaveDate.GetInstance().ZCMiMa = pass;
        GameObject gt = GameObject.Find("LoginPage(Clone)");
        gt.GetComponent<LoginPage>().SenYanZheng();
        Close();
    }
}
